class CreatePhotos < ActiveRecord::Migration
  def self.up
    create_table :photos do |t|
      t.references  :photo_set
      t.string      "caption"
      t.boolean     :published,     :default => true
      t.timestamps
    end
    
    add_index :photos, :photo_set_id
  end

  def self.down
    drop_table :photos
  end
end
